#coding=utf-8
class student(object):

    def __init__(self,name,age,course):
        self.name = name
        self.age = age
        self.course = course
    def get_name(self):
        return self.name

    def get_age(self):
        return self.age
    def get_course(self):
        return  self.course


zm = student('zhangming',20,[69,88,100])

print zm.get_name()
print zm.get_age()
print zm.get_course()
lq = student('liqiang',23,[82,60,99])
print lq.get_name()
print lq.get_age()
print lq.get_course()[2]

class dictory(object):
    def __init__(self,dict):
        self.dict = dict

    def del_dict(self):
        self.dict.pop('key')
        return self.dict
    def find_key(self,keys):
         if keys in self.dict:
             return self.dict[keys]
         else:
             return "not found"



ob = dictory({'key':"key1",'key2':"key2",'key3':"key3"})
print ob.del_dict()
print ob.find_key('key5')

